from __future__ import annotations

from dataclasses import dataclass


@dataclass
class InducedVoltage:
    voltage_V: float
    note: str


def estimate_induced_voltage(parallel_length_m: float, separation_m: float, current_A: float, coupling_coeff: float = 0.8e-6) -> InducedVoltage:
    """感应电压近似：V ≈ k · I · L / d。k为耦合经验系数。"""

    V = coupling_coeff * current_A * parallel_length_m / max(1e-6, separation_m)
    return InducedVoltage(voltage_V=V, note="仅为近似，需电磁场仿真校核")


